#!/bin/bash

if [[ "$(uname -s)" == "Windows_NT" ]]; then
	perl -i -0777pe 's/return\ getLatestSeleneRelease\(\)[^;]*?;[^;]*?;[^;]*?;//' ~/scoop/persist/vscodium/data/extensions/kampfkarren.selene-vscode-1.5.1/out/util.js
else
	perl -i -0777pe 's/return\ getLatestSeleneRelease\(\)[^;]*?;[^;]*?;[^;]*?;//' ~/.vscode-oss/extensions/kampfkarren.selene-vscode-1.5.1/out/util.js
fi

# bash -c "$(curl -fsSL https://gitee.com/hevey88/install_script/raw/main/selene_change.sh)"
